inherited dtmck_StuffCheck: Tdtmck_StuffCheck
  OldCreateOrder = True
  Left = 701
  Top = 236
  Height = 453
  Width = 873
  inherited adsMaster: TADODataSet
    CursorType = ctStatic
    CommandText = 'Select * from V_ck_StuffBill where 0=1'
    object adsMasterBillID: TStringField
      DisplayLabel = #21333#25454'ID'
      FieldName = 'BillID'
    end
    object adsMasterBillNo: TStringField
      DisplayLabel = #21333#25454#32534#21495
      FieldName = 'BillNo'
    end
    object adsMasterBillDate: TDateTimeField
      DisplayLabel = #30424#28857#26085#26399
      FieldName = 'BillDate'
    end
    object adsMasterBillType: TStringField
      DisplayLabel = #21333#25454#31867#22411
      FieldName = 'BillType'
    end
    object adsMasterBillTypeName: TStringField
      DisplayLabel = #21333#25454#31867#22411
      FieldName = 'BillTypeName'
    end
    object adsMasterBillFlow: TWordField
      DisplayLabel = #28304#21333#31867#22411
      FieldName = 'BillFlow'
    end
    object adsMasterDataType: TStringField
      DisplayLabel = #25968#25454#31867#22411
      FieldName = 'DataType'
    end
    object adsMasterInOutType: TStringField
      DisplayLabel = #20986#20837#31867#22411'ID'
      FieldName = 'InOutType'
    end
    object adsMasterInOutTypeName: TStringField
      DisplayLabel = #20986#20837#31867#22411
      FieldName = 'InOutTypeName'
      Size = 50
    end
    object adsMasterDeptID: TStringField
      DisplayLabel = #37096#38376'ID'
      FieldName = 'DeptID'
    end
    object adsMasterStockID: TStringField
      DisplayLabel = #30424#28857#20179#24211'ID'
      FieldName = 'StockID'
    end
    object adsMasterStockCode: TStringField
      DisplayLabel = #20179#24211#32534#30721
      FieldName = 'StockCode'
    end
    object adsMasterStockName: TStringField
      DisplayLabel = #30424#28857#20179#24211
      FieldName = 'StockName'
      Size = 50
    end
    object adsMasterStockMan: TStringField
      DisplayLabel = #20179#31649#21592
      FieldName = 'StockMan'
    end
    object adsMasterStockManName: TStringField
      DisplayLabel = #20179#31649#21592
      FieldName = 'StockManName'
    end
    object adsMasterSupplyID: TStringField
      DisplayLabel = #30424#28857#21333#20301'|ID'
      FieldName = 'SupplyID'
    end
    object adsMasterSupplyCode: TStringField
      DisplayLabel = #30424#28857#21333#20301'|'#32534#30721
      FieldName = 'SupplyCode'
    end
    object adsMasterSupplyShortName: TStringField
      DisplayLabel = #30424#28857#21333#20301'|'#21517#31216
      FieldName = 'SupplyShortName'
      Size = 50
    end
    object adsMasterHelperCode: TStringField
      DisplayLabel = #30424#28857#21333#20301'|'#21161#35760#30721
      FieldName = 'HelperCode'
      Size = 10
    end
    object adsMasterSumMoney: TFloatField
      DisplayLabel = #24635#37329#39069
      FieldName = 'SumMoney'
    end
    object adsMasterHasCheck: TBooleanField
      DisplayLabel = #23457#26680#21542
      FieldName = 'HasCheck'
    end
    object adsMasterChecker: TStringField
      DisplayLabel = #23457#26680#20154
      FieldName = 'Checker'
    end
    object adsMasterCheckTime: TDateTimeField
      DisplayLabel = #23457#26680#26102#38388
      FieldName = 'CheckTime'
    end
    object adsMasterHasApprove: TBooleanField
      DisplayLabel = #22797#23457#21542
      FieldName = 'HasApprove'
    end
    object adsMasterApprover: TStringField
      DisplayLabel = #22797#23457#20154
      FieldName = 'Approver'
    end
    object adsMasterApproveTime: TDateTimeField
      DisplayLabel = #22797#23457#26102#38388
      FieldName = 'ApproveTime'
    end
    object adsMasterWriter: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsMasterWriteTime: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsMasterModifier: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsMasterModifyTime: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsMasterRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 500
    end
  end
  inherited adsMasterEdit: TADODataSet
    CursorType = ctStatic
    CommandText = 'Select * from ck_StuffBill'
    object adsMasterEditBillID: TStringField
      DisplayLabel = #21333#25454'ID'
      FieldName = 'BillID'
    end
    object adsMasterEditBillNo: TStringField
      DisplayLabel = #21333#25454#32534#21495
      FieldName = 'BillNo'
    end
    object adsMasterEditBillDate: TDateTimeField
      DisplayLabel = #30424#28857#26085#26399
      FieldName = 'BillDate'
    end
    object adsMasterEditBillType: TStringField
      DisplayLabel = #21333#25454#31867#22411
      FieldName = 'BillType'
    end
    object adsMasterEditBillFlow: TWordField
      DisplayLabel = #28304#21333#31867#22411
      FieldName = 'BillFlow'
    end
    object adsMasterEditDataType: TStringField
      DisplayLabel = #25968#25454#31867#22411
      FieldName = 'DataType'
    end
    object adsMasterEditInOutType: TStringField
      DisplayLabel = #20986#20837#31867#22411
      FieldName = 'InOutType'
    end
    object adsMasterEditDeptID: TStringField
      DisplayLabel = #37096#38376'ID'
      FieldName = 'DeptID'
    end
    object adsMasterEditSupplyID: TStringField
      DisplayLabel = #30424#28857#21333#20301'ID'
      FieldName = 'SupplyID'
    end
    object adsMasterEditStockID: TStringField
      DisplayLabel = #30424#28857#20179#24211'ID'
      FieldName = 'StockID'
    end
    object adsMasterEditStockMan: TStringField
      DisplayLabel = #20179#31649#21592
      FieldName = 'StockMan'
    end
    object adsMasterEditDrawMan: TStringField
      DisplayLabel = #39046#26009#20154
      FieldName = 'DrawMan'
    end
    object adsMasterEditDrawDeptID: TStringField
      DisplayLabel = #37096#38376
      FieldName = 'DrawDeptID'
    end
    object adsMasterEditSumMoney: TFloatField
      DisplayLabel = #24635#37329#39069
      FieldName = 'SumMoney'
    end
    object adsMasterEditHasCheck: TBooleanField
      DisplayLabel = #23457#26680#21542
      FieldName = 'HasCheck'
    end
    object adsMasterEditChecker: TStringField
      DisplayLabel = #23457#26680#20154
      FieldName = 'Checker'
    end
    object adsMasterEditCheckTime: TDateTimeField
      DisplayLabel = #23457#26680#26102#38388
      FieldName = 'CheckTime'
    end
    object adsMasterEditHasApprove: TBooleanField
      DisplayLabel = #22797#23457#21542
      FieldName = 'HasApprove'
    end
    object adsMasterEditApprover: TStringField
      DisplayLabel = #22797#23457#20154
      FieldName = 'Approver'
    end
    object adsMasterEditApproveTime: TDateTimeField
      DisplayLabel = #22797#23457#26102#38388
      FieldName = 'ApproveTime'
    end
    object adsMasterEditWriter: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsMasterEditWriteTime: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsMasterEditModifier: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsMasterEditModifyTime: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsMasterEditRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 500
    end
    object adsMasterEditres_StockName: TStringField
      DisplayLabel = #30424#28857#20179#24211
      FieldKind = fkLookup
      FieldName = 'res_StockName'
      LookupDataSet = res_Stock
      LookupKeyFields = 'StockID'
      LookupResultField = 'StockName'
      KeyFields = 'StockID'
      Size = 50
      Lookup = True
    end
    object adsMasterEditres_SupplyName: TStringField
      DisplayLabel = #30424#28857#21333#20301
      FieldKind = fkLookup
      FieldName = 'res_SupplyName'
      LookupDataSet = res_Supply
      LookupKeyFields = 'SupplyID'
      LookupResultField = 'SupplyFullName'
      KeyFields = 'SupplyID'
      Size = 50
      Lookup = True
    end
    object adsMasterEditres_SupplyFullName: TStringField
      DisplayLabel = #30424#28857#21333#20301#20840#31216
      FieldKind = fkLookup
      FieldName = 'res_SupplyFullName'
      LookupDataSet = res_Supply
      LookupKeyFields = 'SupplyID'
      LookupResultField = 'SupplyFullName'
      KeyFields = 'SupplyID'
      Size = 100
      Lookup = True
    end
    object adsMasterEditres_DrawMan: TStringField
      DisplayLabel = #39046#26009#20154
      FieldKind = fkLookup
      FieldName = 'res_DrawManName'
      LookupDataSet = res_Employee
      LookupKeyFields = 'EmpID'
      LookupResultField = 'EmpName'
      KeyFields = 'DrawMan'
      Lookup = True
    end
    object adsMasterEditres_InOutTypeName: TStringField
      DisplayLabel = #20986#20837#31867#22411
      FieldKind = fkLookup
      FieldName = 'res_InOutTypeName'
      LookupDataSet = res_InOutType
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'InOutType'
      Size = 50
      Lookup = True
    end
    object adsMasterEditres_StockManName: TStringField
      DisplayLabel = #20179#31649
      FieldKind = fkLookup
      FieldName = 'res_StockManName'
      LookupDataSet = res_Employee
      LookupKeyFields = 'EmpID'
      LookupResultField = 'EmpName'
      KeyFields = 'StockMan'
      Lookup = True
    end
    object adsMasterEditres_DeptFullName: TStringField
      DisplayLabel = #37096#38376
      FieldKind = fkLookup
      FieldName = 'res_DeptFullName'
      LookupDataSet = res_Department
      LookupKeyFields = 'DeptID'
      LookupResultField = 'DeptFullName'
      KeyFields = 'DrawDeptID'
      Size = 100
      Lookup = True
    end
  end
  object adsDetail: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    BeforePost = adsDetailBeforePost
    OnNewRecord = adsDetailNewRecord
    CommandText = 'Select * from ck_StuffBillDetail where 0=1'
    EnableBCD = False
    Parameters = <>
    Left = 192
    Top = 40
    object adsDetailID: TStringField
      FieldName = 'ID'
    end
    object adsDetailBillID: TStringField
      DisplayLabel = #20851#32852'ID'
      FieldName = 'BillID'
    end
    object adsDetailOrderNo: TStringField
      Tag = 2
      DisplayLabel = #35746#21333#32534#21495
      FieldName = 'OrderNo'
    end
    object adsDetailOrderDetailNo: TStringField
      Tag = 2
      DisplayLabel = #37319#36141#35746#21333#26126#32454#21333#21495
      FieldName = 'OrderDetailNo'
    end
    object adsDetailCustOrderDetailNo: TStringField
      Tag = 2
      DisplayLabel = #23458#25143#35746#21333#26126#32454#21333#21495
      FieldName = 'CustOrderDetailNo'
    end
    object adsDetailCustOrderNo: TStringField
      Tag = 2
      DisplayLabel = #23458#25143#35746#21333#21495
      FieldName = 'CustOrderNo'
    end
    object adsDetailPosID: TStringField
      DisplayLabel = #20179#20301'ID'
      FieldName = 'PosID'
    end
    object adsDetailres_PosNo: TStringField
      DisplayLabel = #20179#20301
      FieldKind = fkLookup
      FieldName = 'res_PosNo'
      LookupDataSet = res_StockPlace
      LookupKeyFields = 'PosID'
      LookupResultField = 'PosNo'
      KeyFields = 'PosID'
      Lookup = True
    end
    object adsDetailProcessID: TStringField
      DisplayLabel = #31867#22411'ID'
      FieldName = 'ProcessID'
    end
    object adsDetailres_ProcessName: TStringField
      DisplayLabel = #31867#22411
      FieldKind = fkLookup
      FieldName = 'res_ProcessName'
      LookupDataSet = res_StuffProcessType
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'ProcessID'
      Lookup = True
    end
    object adsDetailStuffID: TStringField
      DisplayLabel = #29289#26009'ID'
      FieldName = 'StuffID'
    end
    object adsDetailStuffCode: TStringField
      DisplayLabel = #29289#26009#32534#30721
      FieldName = 'StuffCode'
      Size = 50
    end
    object adsDetailStuffName: TStringField
      DisplayLabel = #29289#26009#21517#31216
      FieldName = 'StuffName'
      Size = 100
    end
    object adsDetailSpecs: TStringField
      DisplayLabel = #22411#21495#35268#26684
      FieldName = 'Specs'
      Size = 1000
    end
    object adsDetailBrand: TStringField
      DisplayLabel = #21697#29260
      FieldName = 'Brand'
    end
    object adsDetailSupplyID: TStringField
      DisplayLabel = #20379#24212#21830'ID'
      FieldName = 'SupplyID'
    end
    object adsDetailres_SupplyCode: TStringField
      DisplayLabel = #20379#24212#21830#32534#30721
      FieldKind = fkLookup
      FieldName = 'res_SupplyCode'
      LookupDataSet = res_Supply
      LookupKeyFields = 'SupplyID'
      LookupResultField = 'SupplyCode'
      KeyFields = 'SupplyID'
      Lookup = True
    end
    object adsDetailres_SupplyName: TStringField
      DisplayLabel = #20379#24212#21830#21517#31216
      FieldKind = fkLookup
      FieldName = 'res_SupplyName'
      LookupDataSet = res_Supply
      LookupKeyFields = 'SupplyID'
      LookupResultField = 'SupplyShortName'
      KeyFields = 'SupplyID'
      Size = 50
      Lookup = True
    end
    object adsDetailBatchNo: TStringField
      Tag = 2
      DisplayLabel = #25209#21495
      FieldName = 'BatchNo'
      Size = 50
    end
    object adsDetailColorName: TStringField
      DisplayLabel = #39068#33394
      FieldName = 'ColorName'
      Size = 50
    end
    object adsDetailProperties: TStringField
      DisplayLabel = #23646#24615
      FieldName = 'Properties'
      Size = 50
    end
    object adsDetailPieceCount: TIntegerField
      Tag = 2
      DisplayLabel = #36134#38754#20214#25968
      FieldName = 'PieceCount'
      OnChange = adsDetailPieceCountChange
    end
    object adsDetailPieceNumber: TFloatField
      DisplayLabel = #27599#20214#25968#37327
      FieldName = 'PieceNumber'
    end
    object adsDetailNumber: TFloatField
      DisplayLabel = #36134#38754#25968#37327
      FieldName = 'Number'
      OnChange = adsDetailNumberChange
    end
    object adsDetailUnitID: TStringField
      DisplayLabel = #21333#20301'ID'
      FieldName = 'UnitID'
    end
    object adsDetailres_UnitName: TStringField
      DisplayLabel = #21333#20301
      FieldKind = fkLookup
      FieldName = 'res_UnitName'
      LookupDataSet = res_Unit
      LookupKeyFields = 'UnitID'
      LookupResultField = 'UnitName'
      KeyFields = 'UnitID'
      Size = 10
      Lookup = True
    end
    object adsDetailAuxNumber: TFloatField
      DisplayLabel = #36741#21161#25968#37327
      FieldName = 'AuxNumber'
    end
    object adsDetailAuxUnitID: TStringField
      DisplayLabel = #36741#21161#21333#20301'ID'
      FieldName = 'AuxUnitID'
    end
    object adsDetailres_AuxUnitName: TStringField
      DisplayLabel = #36741#21161#21333#20301
      FieldKind = fkLookup
      FieldName = 'res_AuxUnitName'
      LookupDataSet = res_Unit
      LookupKeyFields = 'UnitID'
      LookupResultField = 'UnitName'
      KeyFields = 'AuxUnitID'
      Size = 10
      Lookup = True
    end
    object adsDetailConvertRate: TFloatField
      DisplayLabel = #25442#31639#29575
      FieldName = 'ConvertRate'
      OnChange = adsDetailConvertRateChange
    end
    object adsDetailPrice: TFloatField
      Tag = 2
      DisplayLabel = #23384#36135#21333#20215
      FieldName = 'Price'
      OnChange = adsDetailPriceChange
    end
    object adsDetailMoney: TBCDField
      DisplayLabel = #36134#38754#37329#39069
      FieldName = 'Money'
      OnChange = adsDetailMoneyChange
      Precision = 18
      Size = 2
    end
    object adsDetailActualPieceCount: TIntegerField
      DisplayLabel = #23454#29289#20214#25968
      FieldName = 'ActualPieceCount'
      OnChange = adsDetailActualPieceCountChange
    end
    object adsDetailActualNumber: TFloatField
      DisplayLabel = #23454#29289#25968#37327
      FieldName = 'ActualNumber'
      OnChange = adsDetailActualNumberChange
    end
    object adsDetailActualMoney: TFloatField
      DisplayLabel = #23454#29289#37329#39069
      FieldName = 'ActualMoney'
      OnChange = adsDetailActualMoneyChange
    end
    object adsDetailSubPieceCount: TIntegerField
      DisplayLabel = #30408#20111#20214#25968
      FieldName = 'SubPieceCount'
    end
    object adsDetailSubNumber: TFloatField
      DisplayLabel = #30408#20111#25968#37327
      FieldName = 'SubNumber'
    end
    object adsDetailSubMoney: TFloatField
      DisplayLabel = #30408#20111#37329#39069
      FieldName = 'SubMoney'
    end
    object adsDetailWriter: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsDetailWriteTime: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsDetailModifier: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsDetailModifyTime: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsDetailRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 500
    end
  end
  object res_Supply: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 
      'Select SupplyID, SupplyCode, SupplyShortName, SupplyFullName fro' +
      'm V_da_DeptCustSupply'
    Parameters = <>
    Left = 192
    Top = 104
  end
  object res_Employee: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select EmpID, EmpName from V_da_Employee'
    Parameters = <>
    Left = 192
    Top = 168
  end
  object res_Stock: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select StockID, StockCode, StockName from V_da_Stock'
    Parameters = <>
    Left = 328
    Top = 168
  end
  object frdsDetail: TfrDBDataSet
    DataSet = adsDetail
    Left = 56
    Top = 240
  end
  object res_Unit: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select UnitID, UnitCode, UnitName from V_da_Unit'
    Parameters = <>
    Left = 464
    Top = 168
  end
  object res_StockPlace: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select PosID, PosNo, PosName from V_da_StockPlace'
    Parameters = <>
    Left = 328
    Top = 240
  end
  object res_InOutType: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ID, Name from V_da_InOutType'
    Parameters = <>
    Left = 464
    Top = 240
  end
  object adsUserStock: TADODataSet
    Connection = dtmConnect.conMain
    LockType = ltBatchOptimistic
    CommandText = 
      'select b.StockID, b.StockCode, b.StockName from xt_StockSet a '#13#10 +
      'join da_Stock b on a.StockID=b.StockID'#13#10'where b.DeptID=:DeptID'#13#10 +
      ' and a.UserID=(select UserID from xt_Users where UserCode=:UserC' +
      'ode)'#13#10' and isnull(b.StockType,0)=:StockType and isnull(b.HasStop' +
      ',0)=0'
    Parameters = <
      item
        Name = 'DeptID'
        Size = -1
        Value = Null
      end
      item
        Name = 'UserCode'
        Size = -1
        Value = Null
      end
      item
        Name = 'StockType'
        Size = -1
        Value = Null
      end>
    Left = 464
    Top = 104
  end
  object res_Department: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 
      'Select DeptID, DeptCode, DeptName, DeptFullName'#13#10'  from V_da_Dep' +
      'artment'
    Parameters = <>
    Left = 192
    Top = 240
  end
  object adsDepartment: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    CommandText = 
      'Select DeptID, DeptCode, DeptName, DeptFullName'#13#10'from V_da_Depar' +
      'tment'#13#10'where isnull(HasStop,0)=0'#13#10'order by DeptID'
    Parameters = <>
    Left = 328
    Top = 104
    object adsDepartmentDeptID: TStringField
      FieldName = 'DeptID'
    end
    object adsDepartmentDeptCode: TStringField
      FieldName = 'DeptCode'
    end
    object adsDepartmentDeptName: TStringField
      FieldName = 'DeptName'
      Size = 50
    end
    object adsDepartmentDeptFullName: TStringField
      FieldName = 'DeptFullName'
      Size = 100
    end
  end
  object adsBrowseDetail: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    BeforePost = adsDetailBeforePost
    OnNewRecord = adsDetailNewRecord
    CommandText = 'Select * from ck_StuffBillDetail where 0=1'
    EnableBCD = False
    Parameters = <>
    Left = 328
    Top = 40
    object StringField1: TStringField
      FieldName = 'ID'
    end
    object StringField2: TStringField
      DisplayLabel = #20851#32852'ID'
      FieldName = 'BillID'
    end
    object StringField3: TStringField
      Tag = 2
      DisplayLabel = #35746#21333#32534#21495
      FieldName = 'OrderNo'
    end
    object StringField4: TStringField
      Tag = 2
      DisplayLabel = #37319#36141#35746#21333#26126#32454#21333#21495
      FieldName = 'OrderDetailNo'
    end
    object StringField5: TStringField
      Tag = 2
      DisplayLabel = #23458#25143#35746#21333#26126#32454#21333#21495
      FieldName = 'CustOrderDetailNo'
    end
    object StringField6: TStringField
      Tag = 2
      DisplayLabel = #23458#25143#35746#21333#21495
      FieldName = 'CustOrderNo'
    end
    object StringField7: TStringField
      DisplayLabel = #20179#20301'ID'
      FieldName = 'PosID'
    end
    object StringField8: TStringField
      DisplayLabel = #20179#20301
      FieldKind = fkLookup
      FieldName = 'res_PosNo'
      LookupDataSet = res_StockPlace
      LookupKeyFields = 'PosID'
      LookupResultField = 'PosNo'
      KeyFields = 'PosID'
      Lookup = True
    end
    object adsBrowseDetailProcessID: TStringField
      DisplayLabel = #31867#22411'ID'
      FieldName = 'ProcessID'
    end
    object adsBrowseDetailres_ProcessName: TStringField
      DisplayLabel = #31867#22411
      FieldKind = fkLookup
      FieldName = 'res_ProcessName'
      LookupDataSet = res_StuffProcessType
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'ProcessID'
      Lookup = True
    end
    object StringField9: TStringField
      DisplayLabel = #29289#26009'ID'
      FieldName = 'StuffID'
    end
    object StringField10: TStringField
      DisplayLabel = #29289#26009#32534#30721
      FieldName = 'StuffCode'
      Size = 50
    end
    object StringField11: TStringField
      DisplayLabel = #29289#26009#21517#31216
      FieldName = 'StuffName'
      Size = 100
    end
    object StringField12: TStringField
      DisplayLabel = #22411#21495#35268#26684
      FieldName = 'Specs'
      Size = 1000
    end
    object adsBrowseDetailBrand: TStringField
      DisplayLabel = #21697#29260
      FieldName = 'Brand'
    end
    object StringField13: TStringField
      DisplayLabel = #20379#24212#21830'ID'
      FieldName = 'SupplyID'
    end
    object StringField14: TStringField
      Tag = 2
      DisplayLabel = #25209#21495
      FieldName = 'BatchNo'
      Size = 50
    end
    object adsBrowseDetailColorName: TStringField
      DisplayLabel = #39068#33394
      FieldName = 'ColorName'
      Size = 50
    end
    object adsBrowseDetailProperties: TStringField
      DisplayLabel = #23646#24615
      FieldName = 'Properties'
      Size = 50
    end
    object IntegerField1: TIntegerField
      Tag = 2
      DisplayLabel = #36134#38754#20214#25968
      FieldName = 'PieceCount'
    end
    object FloatField1: TFloatField
      DisplayLabel = #27599#20214#25968#37327
      FieldName = 'PieceNumber'
    end
    object FloatField2: TFloatField
      DisplayLabel = #36134#38754#25968#37327
      FieldName = 'Number'
      OnChange = adsDetailNumberChange
    end
    object StringField15: TStringField
      DisplayLabel = #21333#20301'ID'
      FieldName = 'UnitID'
    end
    object StringField16: TStringField
      DisplayLabel = #21333#20301
      FieldKind = fkLookup
      FieldName = 'res_UnitName'
      LookupDataSet = res_Unit
      LookupKeyFields = 'UnitID'
      LookupResultField = 'UnitName'
      KeyFields = 'UnitID'
      Size = 10
      Lookup = True
    end
    object FloatField3: TFloatField
      Tag = 2
      DisplayLabel = #23384#36135#21333#20215
      FieldName = 'Price'
      OnChange = adsDetailPriceChange
    end
    object BCDField1: TBCDField
      DisplayLabel = #30408#20111#37329#39069
      FieldName = 'Money'
      OnChange = adsDetailMoneyChange
      Precision = 18
      Size = 2
    end
    object adsBrowseDetailActualPieceCount: TIntegerField
      DisplayLabel = #23454#29289#20214#25968
      FieldName = 'ActualPieceCount'
    end
    object FloatField4: TFloatField
      DisplayLabel = #23454#29289#25968#37327
      FieldName = 'ActualNumber'
    end
    object adsBrowseDetailSubPieceCount: TIntegerField
      DisplayLabel = #30408#20111#20214#25968
      FieldName = 'SubPieceCount'
    end
    object FloatField5: TFloatField
      DisplayLabel = #30408#20111#25968#37327
      FieldName = 'SubNumber'
    end
    object adsBrowseDetailSubMoney: TFloatField
      DisplayLabel = #30408#20111#37329#39069
      FieldName = 'SubMoney'
    end
    object StringField17: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object DateTimeField1: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object StringField18: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object DateTimeField2: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object StringField19: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 500
    end
  end
  object res_StuffProcessType: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ID, Name from V_ck_StuffProcessType'
    Parameters = <>
    Left = 464
    Top = 40
  end
  object adsGetDynStuffStock: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 
      'exec ck_sc_GetDynStuffStock'#13#10'@DataType=:DataType,'#13#10'@DeptID=:Dept' +
      'ID,'#13#10'@StockID=:StockID,'#13#10'@CheckEndDate=:CheckEndDate,'#13#10'@SysUpdat' +
      'eType=:SysUpdateType,'#13#10'@SysInfoCompany=:SysInfoCompany,'#13#10'@SysInf' +
      'oUserCode=:SysInfoUserCode,'#13#10'@ProcFlag=:ProcFlag,'#13#10'@Msg='#39#39
    Parameters = <
      item
        Name = 'DataType'
        Attributes = [paNullable]
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 20
        Value = Null
      end
      item
        Name = 'DeptID'
        Attributes = [paNullable]
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 20
        Value = Null
      end
      item
        Name = 'StockID'
        Attributes = [paNullable]
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 20
        Value = Null
      end
      item
        Name = 'CheckEndDate'
        Attributes = [paNullable]
        DataType = ftDateTime
        NumericScale = 3
        Precision = 23
        Size = 16
        Value = Null
      end
      item
        Name = 'SysUpdateType'
        Attributes = [paNullable]
        DataType = ftWord
        Precision = 3
        Size = 1
        Value = Null
      end
      item
        Name = 'SysInfoCompany'
        Attributes = [paNullable]
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 20
        Value = Null
      end
      item
        Name = 'SysInfoUserCode'
        Attributes = [paNullable]
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 20
        Value = Null
      end
      item
        Name = 'ProcFlag'
        Attributes = [paSigned, paNullable]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end>
    Left = 608
    Top = 240
  end
end
